package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评价主表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Evaluation extends Model<Evaluation> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 教练id
     */
    private String coachId;

    /**
     * 会员id
     */
    private String clubUserId;

    /**
     * 评价内容
     */
    private String evaluationContent;

    /**
     * 评价星级(0一颗星 1两颗星 2三颗星 3四颗星 4五颗星)
     */
    private Integer evaluationStar;

    /**
     * 评价图片(以逗号隔开)
     */
    private String evaluationImg;

    /**
     * 评价时间
     */
    private Date createTime;

    /**
     * 会员名称
     */
    private String userName;

    /**
     * 教练名称
     */
    private String coachName;

    /**
     * 是否匿名 1-是 0-否
     */
    private Integer isAnonymity;

    /**
     * 用户头像
     */
    private String userIcon;


    public static final String ID = "id";

    public static final String COACH_ID = "coach_id";

    public static final String CLUB_USER_ID = "club_user_id";

    public static final String EVALUATION_CONTENT = "evaluation_content";

    public static final String EVALUATION_STAR = "evaluation_star";

    public static final String EVALUATION_IMG = "evaluation_img";

    public static final String CREATE_TIME = "create_time";

    public static final String USER_NAME = "user_name";

    public static final String COACH_NAME = "coach_name";

    public static final String IS_ANONYMITY = "is_anonymity";

    public static final String USER_ICON = "user_icon";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
